
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemStoreStaffRequest struct {

	Uid string `json:"uid" form:"uid"`

	Avatar string `json:"avatar" form:"avatar"`

	StoreId string `json:"store_id" form:"store_id"`

	StaffName string `json:"staff_name" form:"staff_name"`

	Phone string `json:"phone" form:"phone"`

	VerifyStatus string `json:"verify_status" form:"verify_status"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *SystemStoreStaffRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemStoreStaffRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"avatar": "required",

		"store_id": "required",

		"staff_name": "required",

		"phone": "required",

		"verify_status": "required",

		"status": "required",

		"add_time": "required",

	}
}

func (r *SystemStoreStaffRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemStoreStaffRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemStoreStaffRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
